<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>量子数据查询</title>
        <script type="text/javascript" src="../common/js/common.js"></script>
        <script type="text/javascript" src="../common/js/datetime.js"></script>
        <script type="text/javascript" src="../common/js/dp/js/ui.datepicker-zh-cn.js"></script>
        <script type="text/javascript" src="../common/js/dp/js/jquery-ui-1.8.6.custom.min.js"></script>
        <script type="text/javascript" src="../common/js/dp/js/jquery-ui-timepicker-addon.js"></script>
        <link href="../common/js/dp/css/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css"/>
        <script src="../common/js/jquery-1.7.js"></script> 
         <link href="../common/css/style1.css" rel="stylesheet" type="text/css"/>
        <script src="../common/js/jquery.fileDownload.js"></script>
    <script type="text/javascript">
    var $j = jQuery.noConflict();//以$j来替代jQuery中的$
        function ShowMenu(id) {
            var className = document.getElementById('menu' + id).className;
            if(className.indexOf('curr')==-1)
                document.getElementById('menu' + id).className = 'mouseover';
            else
                document.getElementById('menu' + id).className = 'curr mouseover';
            document.getElementById('ul'+id).style.display = 'block';
        }
        function HideMenu(id) {
            var className = document.getElementById('menu' + id).className;
            if (className.indexOf('curr') == -1)
                document.getElementById('menu' + id).className = '';
            else
                document.getElementById('menu' + id).className = 'curr';
            document.getElementById('ul' + id).style.display = 'none';
        }
        var oldOld = null;
        function ShowMenuDd(obj) {
            if (oldOld == obj) return;
            if (oldOld != null) {
                oldOld.className = '';
            }
            obj.className = 'visible';
            oldOld = obj;
        }

        var speed3 = 10; //速度数值越大速度越慢
        var maxWidth = 0;
        window.onload = function () {
            maxWidth = document.getElementById("divScrollCommend").scrollWidth;
            document.getElementById("tdScroll2").innerHTML = document.getElementById("tdScroll1").innerHTML;
            var MyMar = setInterval(Marquee, speed3);
            document.getElementById("divScrollCommend").onmouseover = function () { clearInterval(MyMar) }
            document.getElementById("divScrollCommend").onmouseout = function () { MyMar = setInterval(Marquee, speed3) }
        }

        function Marquee() {
            var left = parseInt(document.getElementById("divScrollCommend").style.left);
            if (left + maxWidth == 0) {
                left = 0;
            }
            else {
                left--;
            }
            document.getElementById("divScrollCommend").style.left = left + 'px';
        }
        
        function query(){
        	var beginTime = $j("#begin_time").val();
			var endTime =  $j("#end_time").val();
			$j("#beginTime").val(beginTime);
			$j("#endTime").val(endTime);
			document.getElementById("myForm").submit();
        }
    </script>

  </head>
    <body>
	<form id="myForm" action="../../data/excel_export!export.action">
		<input name="beginTime" id="beginTime" type="hidden" value=""/>
		<input name="endTime" id="endTime" type="hidden" value=""/>
	</form>
	<jsp:include page="../common/header.jsp" />          
    <div class="Container">
        <div class="inquiry_box">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                	<tr><td width="10%"><strong>量子数据查询</strong></td></tr>
                	<tr>
                    <td width="10%"><strong>开始日期</strong></td>
                    <td width="30%"><input name="begin_time" id="begin_time" type="text" value="" class="fromDate"/></td>
                    <td width="10%"><strong>结束日期</strong></td>
                    <td width="30%"><input name="end_time" id="end_time" type="text" value="" class="toDate"/></td>
                    <td width="20%"><input type="button" class="buttonA" onclick="query()" value="生成报表" /></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <br />
    <div class="wrapdown">
        <div class="footer">
            <script type="text/javascript" src="../common/layout/footer.js"></script>
        </div>
    </div>
    </body>
</html>
